package com.trmp.sys.codeMng.model;

import java.io.Serializable;

public class CodeDescJson implements Serializable,Comparable<CodeDescJson>{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Long id;
	private String codeId;
	private String desc;
	public String getCodeId() {
		return codeId;
	}
	public void setCodeId(String codeId) {
		this.codeId = codeId;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	@Override
	public int compareTo(CodeDescJson o) {
		if (id < o.id) return -1;
	      if (id > o.id) return 1;
	      return 0;
	}
}
